package com.codingfuture.erp_system.service.impl;

import com.codingfuture.erp_system.dto.StoreOperDto;
import com.codingfuture.erp_system.entity.Goods;
import com.codingfuture.erp_system.entity.Store;
import com.codingfuture.erp_system.entity.StoreOper;
import com.codingfuture.erp_system.mapper.StoreOperMapper;
import com.codingfuture.erp_system.service.StoreOperService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class StoreOperServiceImpl implements StoreOperService {
    @Autowired
    private StoreOperMapper storeOperMapper;

    @Override
    public List<Goods> findAll() {
        return storeOperMapper.findAll();
    }

    @Override
    public List<StoreOperDto> findByAll(Integer storeName, Integer goodsName) {
        return storeOperMapper.findByAll(storeName, goodsName);
    }

    @Override
    public StoreOperDto findById(Integer uuid) {
        return storeOperMapper.findById(uuid);
    }

    @Override
    public List<Store> finAll() {
        return storeOperMapper.finAll();
    }


}
